import { def } from '@vue/shared'
import { createRouter,createWebHistory } from 'vue-router'

const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            redirect:'/login'
        },
        {
            path:'/login',
            component:()=>import('../components/Login/index.vue')
        },
        {
            path:'/home',
            component:()=>import('../components/HomePage/index.vue'),
            children:[
                {
                    path:'',
                    component:()=>import('../components/HomePage/Home/index.vue')
                },
                {
                    path:'jgzyfwlb',
                    component:()=>import('../components/HomePage/Wdgl/Courier/Courier.vue')
                },
                {
                    path:'kszygl',
                    component:()=>import('../components/HomePage/Wdgl/Kdzy/index.vue')
                },
                {
                    path:'kdyzyfwgl',
                    component:()=>import('../components/HomePage/Wdgl/Kdyzy/index.vue')
                },
                {
                    path:'hplx',
                    component:()=>import('../components/HomePage/Wdgl/Hp/index.vue')
                },
                {
                    path:'ysrwgl',
                    component:()=>import('../components/HomePage/Ysgl/ysrw.vue')
                },
                {
                    path:'ysrwxq',
                    component:()=>import('../components/HomePage/Ysgl/ysrwxq.vue')
                },
                {
                    path:'sjzydgl',
                    component:()=>import('../components/HomePage/Ysgl/sjzyd.vue')
                },
            ]
        }
    ]
})

export default router